package com.telit.android.vo;


import com.telit.android.entity.SysConfig;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;


@Data
@NoArgsConstructor
@AllArgsConstructor
public class SysConfigVO implements Serializable {

    private Long id;

    /**
     * 参数名称
     */
    private String configName;

    /**
     * 参数键名
     */
    private String configKey;

    /**
     * 参数键值
     */
    private String configValue;

    /**
     * 系统内置 0 否 1 是
     */
    private Integer configType;

    public SysConfigVO(SysConfig sysConfig){
       this.id = sysConfig.getId();
       this.configName = sysConfig.getConfigName();
       this.configKey = sysConfig.getConfigKey();
       this.configType = sysConfig.getConfigType();
       this.configValue = sysConfig.getConfigValue();
    }

    private static final long serialVersionUID = 1L;

}
